/**
 * 
 */
package com.witframework.core.logic;

import java.util.Collection;
import java.util.List;

import com.witframework.WitServiceException;
import com.witframework.core.ServiceCallback;

/**
 * @author wuxinyang
 * Jul 8, 2009 10:11:33 AM
 * 
 */

public interface ISimpleBaseService extends IBaseService{
	 public abstract String save(Object entity, ServiceCallback callback) throws WitServiceException;

	 public abstract void update(Object entity, ServiceCallback callback) throws WitServiceException;

	 public abstract String saveOrUpdate(Object entity, ServiceCallback callback) throws WitServiceException;

	 public abstract int saveOrUpdateAll(List entityList, ServiceCallback callback) throws WitServiceException;

	 public abstract void deleteById(final String id, ServiceCallback callback) throws WitServiceException;

	 public abstract void delete(Object entity, ServiceCallback callback) throws WitServiceException;

	 public abstract void deleteBy(String propertyName, Object value, ServiceCallback callback) throws WitServiceException;

	 public abstract void deleteAll(Collection entities, ServiceCallback callback) throws WitServiceException;

	 public abstract void deleteAllByIds(ServiceCallback callback, String... ids) throws WitServiceException;

	 public abstract Object merge(Object entity) throws WitServiceException;
	
}